package com.IO;

import java.io.File;

public class listAllFile {

    private static int count;

    public static void method(){
        count++;
        method();
    }

    public static void main(String[] args){
        try{
            method();
        }catch (Throwable e){
            e.printStackTrace();
            System.out.println(count);
        }
    }
}
